package com.atguigu.staservice;

/**
 * @author shkstart
 * @create 2022-08-14 22:09
 */

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication//SpringBoot注解
@MapperScan("com.atguigu.staservice.mapper")//mapper的地址
@ComponentScan("com.atguigu")//扫描包
@EnableDiscoveryClient//nacos注册，不用加也可以，默认开启,做远程调用
@EnableFeignClients//服务调用
@EnableScheduling//定时任务的注解
public class StaApplication {
    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class,args);
    }
}
